package com.example.zhuma.entity;

import java.util.List;

/**
 * @author ironjam
 * @version 1.0
 * @project My Application
 * @description 消息传入
 * @date 2024/3/6 08:36:19
 */
public class Message {
    public MessageType getType() {
        return type;
    }

    public void setType(MessageType type) {
        this.type = type;
    }

    public int getFrom() {
        return from;
    }

    public void setFrom(int from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPasswordAgain() {
        return passwordAgain;
    }

    public void setPasswordAgain(String passwordAgain) {
        this.passwordAgain = passwordAgain;
    }

    public int getPhoto() {
        return photo;
    }

    public void setPhoto(int photo) {
        this.photo = photo;
    }

    public List<String> getFriends() {
        return friends;
    }

    public void setFriends(List<String> friends) {
        this.friends = friends;
    }

    public List<String> getGroups() {
        return groups;
    }

    public void setGroups(List<String> groups) {
        this.groups = groups;
    }

    public boolean isVideo() {
        return isVideo;
    }

    public void setVideo(boolean video) {
        isVideo = video;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int[][] getVideo() {
        return video;
    }

    public void setVideo(int[][] video) {
        this.video = video;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isGroup() {
        return isGroup;
    }

    public void setGroup(boolean group) {
        isGroup = group;
    }

    public boolean isSound() {
        return isSound;
    }

    public void setSound(boolean sound) {
        isSound = sound;
    }

    public boolean isPrivate() {
        return isPrivate;
    }

    public void setPrivate(boolean aPrivate) {
        isPrivate = aPrivate;
    }

    public boolean isFile() {
        return isFile;
    }

    public void setFile(boolean file) {
        isFile = file;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public byte[] getSound() {
        return sound;
    }

    public void setSound(byte[] sound) {
        this.sound = sound;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public boolean isEmoji() {
        return isEmoji;
    }

    public void setEmoji(boolean emoji) {
        isEmoji = emoji;
    }

    //消息的种类
    private MessageType type;
    //发送消息的用户名 1:家长（手机）；2:孩子（树莓派）
    private int from;
    //发送到的id
    private String to;
    //用户的密码
    private String password;
    //注册时确认使用的密码
    private String passwordAgain;
    //发送者的头像编号
    private int photo;
    //好友列表
    private List<String> friends;
    //群聊列表
    private List<String>groups;
    //消息列表，查找聊天记录
    public boolean isVideo;
    public int width;
    public int height;
    public int video[][];
    //发送的内容
    private String content;
    //群聊判定标志,false
    private boolean isGroup;
    //判断是否是音频聊天
    private boolean isSound;
    //私聊判断标志,false
    private boolean isPrivate;
    //文件判断标志,false
    private boolean isFile;
    //成功或者失败的标志
    private boolean success;
    //储存音频
    public byte[] sound;

    private int size;
    //表情判断标志,false
    private boolean isEmoji;
}
